package com.flong.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@Table(name = "t_user2")
@SuppressWarnings("all")
@ApiModel(value = "User实体用户对象", description = "User实体用户对象")
public class User implements Serializable{

	/***
	 * 
	 * @ApiModelProperty()用于方法，字段； 表示对model属性的说明或者数据操作更改 
	 * value–字段说明 
	 * name–重写属性名字 
	 * dataType–重写属性类型 
	 * required–是否必填 
	 * example–举例说明
	 * hidden–隐藏
	 * notes用于提示内容 
	 */
	@ApiModelProperty(value = "用户Id",notes = "用户Id")
	@Id
    @GeneratedValue
	private Integer id ;
	
	@ApiModelProperty(value = "用户名称",notes ="用户名称")
	@Column(nullable = false, unique = true,columnDefinition="varchar(128) not null COMMENT '用户名称密码' ")
	private String userName ;
	
	@Column(nullable = false,columnDefinition="varchar(128) not null COMMENT '用户密码' ")
	@ApiModelProperty(value = "用户密码",notes = "用户密码")
	private String passWord ;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	
}
